package edu.nf.ch06.abs;

import edu.nf.ch06.product.IPad;
import edu.nf.ch06.product.IPhone;
import edu.nf.ch06.product.Pad;
import edu.nf.ch06.product.Phone;

/**
 * @author wangl
 * @date 2025/4/15
 * 抽象工厂负责创建同一产品族的产品
 */
public class AppleFactory implements AbstractFactory {

    @Override
    public Phone createPhone() {
        return new IPhone();
    }

    @Override
    public Pad createPad() {
        return new IPad();
    }
}